<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<script type="text/javascript">
   /** Hace el logout. */    
    var doLogout = function()  {
        var form = $("logoutFormId");
        form.submit();
    }
</script>


<h1>Posgrado FIUBA</h1>
<h2>Sistema de gesti&oacute;n</h2>

<div class="userNameHeader">
    <%=request.getUserPrincipal().getName()%>
    <img src="<html:rewrite page='/protected/img/logout.png'/>" class="logoutHeader" name="submitButton" onclick="doLogout();" title="Cierra la sesion...">
    
</div>    

<%-- Usado desde Javascript --%>
<div id="logoutDivId" class="hideClass">
    <html:form action="/protected/logout" styleId="logoutFormId">
    </html:form>
</div>